package com.hkts.naturalgas.summary;

/**
 * @ClassNameDateEnum
 * @Description
 * @Author yck
 * @Date8/2/2022 上午11:29
 * @Version V1.0
 **/
public enum DateEnum {
    zero(0, "zero"),
    one(1, "one"),
    two(2, "two"),
    three(3, "three"),
    four(4, "four"),
    five(5, "five"),
    six(6, "six"),
    seven(7, "seven"),
    eight(8, "eight"),
    nine(9, "nine"),
    ten(10, "ten"),
    eleven(11, "eleven"),
    twelve(12, "twelve"),
    thirteen(13, "thirteen"),
    fourteen(14, "fourteen"),
    fifteen(15, "fifteen"),
    sixteen(16, "sixteen"),
    seventeen(17, "seventeen"),
    eighteen(18, "eighteen"),
    nineteen(19, "nineteen"),
    twenty(20, "twenty"),
    twentyOne(21, "twentyOne"),
    twentyTwo(22, "twentyTwo"),
    twentyThree(23, "twentyThree");
    private int timeName;
    private String timeFiled;
    private DateEnum(int timeName, String timeFiled) {
        this.timeName = timeName;
        this.timeFiled = timeFiled;
    }
    public static String getTimeFiled(int timeName) {
        for (DateEnum c : DateEnum.values()) {
            if (c.getTimeName()==(timeName)) {
                return c.getTimeFiled();
            }
        }
        return null;
    }
    public String getTimeFiled() {
        return timeFiled;
    }
    public void setTimeFiled(String timeFiled) {
        this.timeFiled = timeFiled;
    }
    public int getTimeName() {
        return timeName;
    }
    public void setTimeName(int timeName) {
        this.timeName = timeName;
    }
}
